<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="text" value="">
<input type="button" value="刻晴" onclick="f(1)">
<input type="button" value="云先生" onclick="f(2)">
<hr>
<script>
  let num = document.querySelector("input[type='text']");
  function f(x){

    for (let i = 0;i<num.value;i++ ){
      let  i = document.createElement("img");
      i.src = x===1?"../刻晴.png": "../云先生.png"
      document.body.append(i)
    }
  }



</script>
</body>
</html>